<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>夜场招聘——免费发布夜场招聘信息_KTV招聘 - {$config['site_name']}</title>
    <link href="__TMPL__skin/css/fafa.css" rel="stylesheet" type="text/css" />
    <link href="__TMPL__skin/css/validator.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript"  language = "javascript" src="__TMPL__skin/js/tools.js"></script>
	<script type="text/javascript"  language = "javascript" src="__TMPL__skin/js/jquery.js"></script> 
    <script src="__TMPL__/skin/js/formvalidator.js" type="text/javascript"></script>
    <script src="__TMPL__/skin/js/formvalidatorregex.js" type="text/javascript"></script>
</head>
<body>

   <include file="Index:header" />


       <div class="container">
                <div class="content">
                    <div class="mq"></div>
                    <div class="subheader">
                        <h1>免费发布信息,</h1>
                    </div>

                    <div style="background-color: #f5fff1; border: 1px solid #d0dbb8; padding: 10px; margin: 10px 10px 20px 10px; font-size: 14px; line-height: 24px;">
                        <p><span class="fs">·</span>游客一天可发布<span class="fo fb">0</span>条信息,注册会员一天可发布<span class="fo fb">10</span>条信息,vip一天可发布<span class="fo fb">100</span>条信息,超出限制发布一条需<span class="fo fb">5</span>金币</p>
                        <p><span class="fs">·</span>请不要发布非法或者重复信息,内容请不要包含特殊符号,<b>发布相同标题或相同内容会被删除账户,请珍惜您的账户</b></p>
                        <p><span class="fs">·</span>投放广告联系微信：YCZJ666 电话：15555520853</p>




                    </div>


                    <div class="fafapostpage">


<!--  {:U('xiugai',array('id'=>$info['id']))}  -->

<form action="" method="post" id="form1" enctype="multipart/form-data" >
                        <table border="0" cellpadding="0" cellspacing="0" width="100%" class="fafapost">

                            <tr>
                                <th style="width: 100px;">发布区域：</th>
                                <td class="inputselect">
                                    <select id="City001" name="City001" style="width: 100px">
                                       <volist name="province" id="v">
                                        <if condition="$v['id'] eq $pid ">
                                            <option value="{$v['id']}" selected="selected">{$v['province']}</option>
                                        <else />
                                       <option value="{$v['id']}">{$v['province']}</option>
                                       </if>
                                       </volist>
                                    
                                    </select>
                                    <select id="City002" name="cityid"  style="width: 100px">
                                         <volist name="citylist" id="v">
                                           <if condition="$v['id'] eq $cityid">
                                            <option value="{$v['id']}" selected="selected">{$v['city']}</option>
                                           <else />
                                            <option value="{$v['id']}">{$v['city']}</option>
                                           </if>                                    
                                       </volist>
                                    </select>
                                  
                                </td>
                            </tr>
                             <tr><th>信息类别：</th><td class='f14'>{$catename['name']}　<a href='{:U('Index/publish')}'  class=f12>重新选择类别>></a></td></tr>
                            <tr>
                                <th>标　　题：</th>
                                <td>
                                    <div class="fl">
                                        <input name="titles" type="text" id="titles" class="input" style="width:450px;" /></div>
                                    <span id="titlesTip" class="vt27"></span></td>
                            </tr>
                            <tr>
                                <th>标　　签：</th>
                                <td>
                                    <div class="fl">
                                        <input name="keywords" type="text" maxlength="25" id="keywords" class="input" style="width:280px;" /></div>
                                    <span id="keywordsTip" class="vt27"></span></td>
                            </tr>
                            <tr>
                                <th valign="top">内　　容：</th>
                                <td>
                                    <div class="fl">
                                        <textarea name="neirong" rows="2" cols="20" id="neirong" class="input" style="height:200px;width:504px;">
                                        
                                        
</textarea></div>
<!--
<script type="text/javascript">

var neirong=document.getElementById("neirong").value;

neirong=neirong.replace('\n');

document.getElementById("neirong").value=neirong;
</script>
-->
                                    <span id="neirongTip" class="vt27"></span></td>
                            </tr>
                            <tr>
                                <th>图片上传：</th>
                                <td>
                                    <input type="file" name="photo" id="photo" class="input" /></td>
                            </tr>
                            <tr>
                                <th>企业名称：</th>
                                <td>
                                    <input name="shopname" type="text" value="{$company['name']}" maxlength="120" id="shopname" class="input" /></td>
                            </tr>
                            <tr>
                                <th>联&nbsp;系&nbsp;人：</th>
                                <td>
                                    <div class="fl">
                                        <input name="contact" type="text" value="{$company['contact']}" id="contact" class="input" /></div>
                                    <span id="contactTip" class="vt27"></span></td>
                            </tr>
                            <tr>
                                <th>联系电话：</th>
                                <td>
                                    <div class="fl">
                                        <input name="phone" type="text" value="{$company['phone']}" id="phone" class="input" /></div>
                                    <span id="phoneTip" class="vt27"></span></td>
                            </tr>
                            <tr>
                                <th>联系邮箱：</th>
                                <td>
                                    <div class="fl">
                                        <input name="email" type="text" value="{$company['email']}" id="email" class="input" /></div>
                                        <span id="emailTip" class="vt27"></span>
                                    </td>
                            </tr>

                            <if condition="$uinfo['vip'] eq 1 ">
                                                        <tr>
                                <td colspan="2">

                                    <table border="0" cellpadding="0" cellspacing="0" width="700" style="font-size: 14px; background-color: #FDFDE1; border: 1px solid #CCCCCC;">
                                        <tr>
                                            <td align="right" width="104" style="padding-right: 5px;">联系QQ：</td>
                                            <td><input name="qq" type="text" class="input" id="qq"  />&nbsp;VIP专享</td>
                                        </tr>
                                        <tr>
                                            <td align="right" style="padding-right: 5px;">商务通：</td>
                                            <td><input name="swt" type="text" class="input" id="swt" style="width: 400px;"  />&nbsp;VIP专享</td>
                                        </tr>
                                    </table>

                                </td>
                            </tr>
                            <else />
                                                        <tr>
                                <td colspan="2">

                                    <table border="0" cellpadding="0" cellspacing="0" width="700" style="font-size: 14px; background-color: #FDFDE1; border: 1px solid #CCCCCC;">
                                        <tr>
                                            <td align="right" width="104" style="padding-right: 5px;">联系QQ：</td>
                                            <td><input name="qq" type="text" class="input" id="qq" onclick="visit('/index.php?m=User&a=company');" readonly="readonly" />&nbsp;VIP专享</td>
                                        </tr>
                                        <tr>
                                            <td align="right" style="padding-right: 5px;">商务通：</td>
                                            <td><input name="swt" type="text" class="input" id="swt" style="width: 400px;" onclick="visit('/index.php?m=User&a=company');" readonly="readonly" />&nbsp;VIP专享</td>
                                        </tr>
                                    </table>

                                </td>
                            </tr>
                            </if>



                            <tr>
                                <th>删除密码：</th>
                                <td>
                                    <div class="fl">
                                        <input name="delpassword" type="text" id="delpassword" class="input" /></div>
                                </td>
                            </tr>
                             
                           <tr>
                                <th>验证码：</th>
                                <td>
                                    <div class="fl">
                                        <input name="verify" type="text" id="verify" class="input" style="width:100px;" />
                                     </div>
                                    <img src="/Admin.php?m=Public&a=verify" alt="验证码,看不清楚?请点击刷新验证码" id="v" style="cursor: pointer; float: left; margin: 2px 3px 0px 3px;"/>
                                    <span id="verifyTip"></span>
                                </td>
                            </tr>
                             <tr>
                                <td class="f14 tr">验证问题：</td>
                                <td>
                                    <div class="fl">
                                    <input type="hidden" id="myselect" value="" name="myselect" />
                                        <select name="yzask" id="yzask" class="input">                                       
                                        	<option  value="">请选择答案</option>
                                         <for start="1" end="101">     
       									 	<option value="{$i}">{$i}</option>      
       									 </for>
                                        </select>
                                    </div>
                                    <span style="display: inline-block; float: left; height: 30px; line-height: 30px; font-size: 14px; padding-left: 5px; color: #000;" id="ask" item="{$ask['index']}">{$ask['ask']}</span>
                                    <span id="yzaskTip"></span>
                                </td>
                            </tr>

                          

                              

                            <tr>
                                <th></th>
                                <td>
                               
                                <input  type="hidden" name="cid" value="{$cid}" />
                                <input type="hidden" name="company_id" value="{$company['id']}" />
                                
                                
                                    <input type="submit" name="tijiao" value="立即发布" id="tijiao" class="btnf" /></td>
                            </tr>
                        </table>
  </form>

             </div> 
                </div>
            </div>
     
     <script type="text/javascript">

                function yzsetn() {
                    $("#yz").val('');

                }


                // document.getElementById('Button1').disabled="disabled"; 
                //document.getElementById('Button1').disabled=true;

                $(document).ready(function () {
                    //
                    // return;
					
					
					/*城市级联*/
					$("#City001").change(function(){
						  var cityid = $(this).val();
						   var url = "{:U('getcity',array('id'=>'"+cityid+"'))}";
						    //alert(url);
						   $.get(url,function(data){
							 
							     $("#City002").html(""); 
								 for(var i=0;i<data.length;i++){
									 
									
							       $("#City002").append(' <option value="'+data[i].id+'" >'+data[i].city+'</option>');
								 }
							   },"json");
						
						});
					
					  $("#v").click(function(){
				  var url ="/Admin.php?m=Public&a=verify&t="+ Math.random();
				  $(this).attr('src',url);
			});
					
                    $.formValidator.initConfig({ formid: "form1", onerror: function (msg) { checkSubmitFlg = false; }, onsuccess: function () { } });

				
				/*回答问题验证*/
		  $("#yzask").formValidator({ onshow: "请选择问题答案", onfocus: "请选择问题答案", oncorrect: "输入正确" }).inputValidator({ min: 1, onerror: "请选择问题答案" })
	    .ajaxValidator({
	        type: "get",
	        url: "index.php?m=Public&a=checkAsk&index="+$("#ask").attr("item")+"&id=myselect",
	        datatype: "json",
	        success: function (data) {
	            if (data == "1") {
	                return true;
	            }
	            else {
	                return false;
	            }
	        },
	        buttons: $("#submit"),
	        error: function () { alert("服务器没有返回数据，可能服务器忙，请重试"); },
	        onerror: "问题回答错误",
	        onwait: "正在对回答进行合法性校验，请稍候..."
	    });

             
			 
			/*图片验证*/
                    $("#verify").formValidator({ onshow: "请输入验证码,看不清请点击图片刷新验证码", onfocus: "请输入验证码,看不清请点击图片刷新验证码", oncorrect: "验证码正确" }).inputValidator({ min: 1, max: 10, onerror: "验证码错误,请从新输入" })
                         .ajaxValidator({
                             type: "get",
                             url: "index.php?m=Public&a=checkVerify&verify="+$('#verify').val(),
                             datatype: "json",
                             success: function (data) {								
                                 if (data == "1") {
                                     return true;
                                 }
                                 else {
                                     return false;
                                 }
                             },
                             buttons: $("#tijiao"),
                             error: function () { alert("服务器没有返回数据，可能服务器忙，请重试"); },
                             onerror: "验证码错误,请从新输入",
                             onwait: "正在对验证码进行合法性校验，请稍候..."
                         });
						 
              
              //$("#selectedClass").formValidator({ onshow: "必须选择一个类别", onfocus:alert("必须选择一个类别2"), oncorrect: "选择正确" }).inputValidator({ min: 1, max: 50, onerror: "必须选择一个类别" }).defaultPassed();
              //$("#selectedClass").formValidator({ onshow: "请选择发布类别", onfocus: "请选择发布类别", oncorrect: "选择正确" }).inputValidator({ min: 1, max: 50, onerror: "请选择信息的发布类别" }).defaultPassed();
              $("#titles").formValidator({ onshow: "请输入标题", onfocus: "请输入标题", oncorrect: "输入正确" }).inputValidator({ min: 5, max: 100, onerror: "请输入5-100字之间" });
              $("#neirong").formValidator({ onshow: "请输入内容", onfocus: "请输入内容", oncorrect: "输入正确" }).inputValidator({ min: 20, max: 10000, onerror: "请输入20-10000字" }).defaultPassed();
              $("#lxren").formValidator({ onshow: "请输入联系人", onfocus: "请输入联系人", oncorrect: "输入正确" }).inputValidator({ min: 2, max: 50, onerror: "请输入2-50字之间" }).defaultPassed();
              $("#lxtel").formValidator({ onshow: "请输入联系电话", onfocus: "请输入联系电话", oncorrect: "输入正确" }).inputValidator({ min: 2, max: 50, onerror: "请输入2-50字之间" }).defaultPassed();
              $("#lxemail").formValidator({ onshow: "请输入联系邮箱", onfocus: "请输入联系邮箱", oncorrect: "输入正确" }).inputValidator({ min: 2, max: 50, onerror: "请输入2-50字之间" }).defaultPassed();

              //document.getElementById('Button1').disabled=false;
          });




            </script>

     
     
            <include file="Index:footer"/>
        </div>
  
</body>
</html>
